<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="utf-8" />
    
  <meta name="description" content="书山有路勤为径，学海无涯苦作舟！" />
  
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
  <title>
    历史上的今天API |  z阅读
  </title>
  
  <link rel="shortcut icon" href="/zreader/favicon.ico" />
  
  
<link rel="stylesheet" href="/zreader/css/style.css">

  
<script src="/zreader/js/pace.min.js"></script>


  

  

<meta name="generator" content="Hexo 4.2.0"></head>

</html>

<body>
  <div id="app">
    <main class="content">
      <section class="outer">
  <article id="post-历史上的今天API" class="article article-type-post" itemscope
  itemprop="blogPost" data-scroll-reveal>

  <div class="article-inner">
    
    <header class="article-header">
       
<h1 class="article-title sea-center" style="border-left:0" itemprop="name">
  历史上的今天API
</h1>
  

    </header>
    

    
    <div class="article-meta">
      <a href="/zreader/2020/01/16/%E5%8E%86%E5%8F%B2%E4%B8%8A%E7%9A%84%E4%BB%8A%E5%A4%A9API/" class="article-date">
  <time datetime="2020-01-16T08:45:48.142Z" itemprop="datePublished">2020-01-16</time>
</a>
      
    </div>
    

    
    
    <div class="tocbot"></div>





    

    <div class="article-entry" itemprop="articleBody">
      


      

      
      <h2 id="历史上的今天API"><a href="#历史上的今天API" class="headerlink" title="历史上的今天API"></a>历史上的今天API</h2><h4 id="1-介绍"><a href="#1-介绍" class="headerlink" title="1.介绍"></a>1.介绍</h4><p>历史上的今天的所有数据来自<a href="https://zh.wikipedia.org/zh-cn/%E5%8E%86%E5%8F%B2%E4%B8%8A%E7%9A%84%E4%BB%8A%E5%A4%A9">维基百科</a>，并且把数据分成了大事记、出生和逝世两部分。该API是码云的Gitee Pages服务建立的，即每天的数据都是一个json文件。</p>
<h4 id="2-用法"><a href="#2-用法" class="headerlink" title="2.用法"></a>2.用法</h4><p>大事记API地址：<a href="https://zhufred.gitee.io/zreader/ht/event/+日期.json">https://zhufred.gitee.io/zreader/ht/event/+日期.json</a></p>
<p>出身和逝世API地址:<a href="https://zhufred.gitee.io/zreader/ht/ld/+日期.json">https://zhufred.gitee.io/zreader/ht/ld/+日期.json</a></p>
<p>说明：日期格式必须是月两位+日两位,如一月一号要写成”0101.json”</p>
<h4 id="3-示例"><a href="#3-示例" class="headerlink" title="3.示例"></a>3.示例</h4><p>请求大事记：<a href="https://zhufred.gitee.io/zreader/ht/event/0116.json">https://zhufred.gitee.io/zreader/ht/event/0116.json</a></p>
<p>返回：</p>
<figure class="highlight json"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br></pre></td><td class="code"><pre><span class="line">[&#123;</span><br><span class="line">	<span class="attr">"title"</span>: <span class="string">"1847年:在美墨战争中，美国和墨西哥签署条约，在加利福尼亚停战。"</span>,<span class="attr">"year"</span>: <span class="number">1847</span>&#125;, </span><br><span class="line"> &#123;</span><br><span class="line">	<span class="attr">"title"</span>: <span class="string">"1898年:法国作家埃米尔·左拉在报纸上发表了给总统菲利·福尔的公开信，呼吁重审德雷福斯案。"</span>,<span class="attr">"year"</span>: <span class="number">1898</span>&#125;,</span><br><span class="line"> &#123;</span><br><span class="line">	<span class="attr">"title"</span>: <span class="string">"1915年:意大利发生地震，造成约2万9800人死亡。"</span>,<span class="attr">"year"</span>: <span class="number">1915</span>&#125;, </span><br><span class="line"> &#123;</span><br><span class="line">	<span class="attr">"title"</span>: <span class="string">"1935年:萨尔举行公民投票，90.3%的投票者赞成与纳粹德国合并。"</span>,<span class="attr">"year"</span>: <span class="number">1935</span>&#125;,</span><br><span class="line"> &#123;</span><br><span class="line">	<span class="attr">"title"</span>: <span class="string">"1938年:英国国教会宣布接受进化论。"</span>,<span class="attr">"year"</span>: <span class="number">1938</span>&#125;, </span><br><span class="line"> &#123;</span><br><span class="line">	<span class="attr">"title"</span>: <span class="string">"1953年:苏联的《真理报》发表文章指责以犹太人为主的著名医生，阴谋毒杀前苏联的政治和军事领导人，医生案件爆发。"</span>,<span class="attr">"year"</span>: <span class="number">1953</span>&#125;, </span><br><span class="line"> &#123;</span><br><span class="line">	<span class="attr">"title"</span>: <span class="string">"1964年:第一届阿拉伯国家首脑会议在开罗举行。"</span>,<span class="attr">"year"</span>: <span class="number">1964</span>&#125;,</span><br><span class="line"> &#123;</span><br><span class="line">	<span class="attr">"title"</span>: <span class="string">"1967年:纳辛贝·埃亚德马在多哥发起政变来夺取国家政权。"</span>,<span class="attr">"year"</span>: <span class="number">1967</span>&#125;,</span><br><span class="line"> &#123;</span><br><span class="line">	<span class="attr">"title"</span>: <span class="string">"1986年:南也门最高人民委员会主席团主席阿里·纳赛尔和其前任伊斯梅尔的支持者在亚丁爆发流血冲突，伊斯梅尔在冲突中死亡。"</span>,<span class="attr">"year"</span>: <span class="number">1986</span>&#125;, </span><br><span class="line"> &#123;</span><br><span class="line">	<span class="attr">"title"</span>: <span class="string">"1988年:中华民国总统蒋经国在台北去世，副总统李登辉继任总统职位，结束蒋氏家族统治台湾的局面。"</span>,<span class="attr">"year"</span>: <span class="number">1988</span>&#125;,</span><br><span class="line"> &#123;</span><br><span class="line">	<span class="attr">"title"</span>: <span class="string">"1993年:禁止化学武器公约签订。"</span>,<span class="attr">"year"</span>: <span class="number">1993</span>&#125;,</span><br><span class="line"> &#123;</span><br><span class="line">	<span class="attr">"title"</span>: <span class="string">"1998年:摩天大楼台北101动工。"</span>,<span class="attr">"year"</span>: <span class="number">1998</span>&#125;, </span><br><span class="line"> &#123;</span><br><span class="line">	<span class="attr">"title"</span>: <span class="string">"2001年:萨尔瓦多发生地震逾800人死亡。"</span>,<span class="attr">"year"</span>: <span class="number">2001</span></span><br><span class="line">&#125;]</span><br></pre></td></tr></table></figure>





<p><strong>该API是用于小编做的<a href="https://zhufred.gitee.io/zreader">Z阅读</a></strong></p>
<p>欢迎试用！欢迎提意见！</p>

      
      <!-- 打赏 -->
      
        <div id="reward-btn">
          打赏
        </div>
        
    </div>
    <footer class="article-footer">
      <a data-url="https://yukun314.gitee.io/zreader/2020/01/16/%E5%8E%86%E5%8F%B2%E4%B8%8A%E7%9A%84%E4%BB%8A%E5%A4%A9API/" data-id="ckpux5khd0001f0cpg7s8cfnd"
        class="article-share-link">分享</a>
      
    </footer>

  </div>

  
  
  <nav class="article-nav">
    
      <a href="/zreader/2020/10/04/TabLayout-%E6%96%87%E5%AD%97-%E5%9B%BE%E6%A0%87-%E8%83%8C%E6%99%AF%E5%8A%A8%E7%94%BB/" class="article-nav-link">
        <strong class="article-nav-caption">上一篇</strong>
        <div class="article-nav-title">
          
            TabLayout  文字/图标/背景动画
          
        </div>
      </a>
    
    
  </nav>


  

  
  
<!-- valine评论 -->
<div id="vcomments-box">
    <div id="vcomments">
    </div>
</div>
<script src="//cdn1.lncld.net/static/js/3.0.4/av-min.js"></script>
<script src='https://cdn.jsdelivr.net/npm/valine@1.3.10/dist/Valine.min.js'></script>
<script>
    new Valine({
        el: '#vcomments',
        notify: false,
        verify: false,
        app_id: 'nncc5vxkXViaodaRNq6mdmPB-gzGzoHsz',
        app_key: 'BT53GVtaskTdp1jDv0zVWW3u',
        path: window.location.pathname,
        avatar: 'mp',
        placeholder: '留下您宝贵的意见！',
        recordIP: true
    });
    const infoEle = document.querySelector('#vcomments .info');
    if (infoEle && infoEle.childNodes && infoEle.childNodes.length > 0) {
        infoEle.childNodes.forEach(function (item) {
            item.parentNode.removeChild(item);
        });
    }
</script>
<style>
    #vcomments-box {
        padding: 5px 30px;
    }

    @media screen and (max-width: 800px) {
        #vcomments-box {
            padding: 5px 0px;
        }
    }

    #vcomments-box #vcomments {
        background-color: #fff;
    }

    .v .vlist .vcard .vh {
        padding-right: 20px;
    }

    .v .vlist .vcard {
        padding-left: 10px;
    }
</style>

  

  
  
  

</article>
</section>
      <footer class="footer">
  <div class="outer">
    <ul class="list-inline">
      <li style="text-align:center;font-size:1.5em">
        &copy;
        2019-2021
        &nbsp;&nbsp;&nbsp;fred
      </li>
    </ul>
	<p>App使用的所有小说为转载作品，所有章节均由网友上传，App只是为了宣传本书让更多读者欣赏。</p>
  </div>
</footer>
    <div class="to_top">
        <div class="totop" id="totop">
  <i class="ri-arrow-up-line"></i>
</div>
      </div>
    </main>
    
    <aside class="sidebar">
      
        <button class="navbar-toggle"></button>
<nav class="navbar">
  
  <div class="logo">
    <a href="/zreader/"><img src="/zreader/images/icon.png" alt="z阅读"></a>
  </div>
  
  <ul class="nav nav-main">
    
    <li class="nav-item">
      <a class="nav-item-link" href="/zreader/">主页</a>
    </li>
    
    <li class="nav-item">
      <a class="nav-item-link" href="/zreader/archives">目录</a>
    </li>
    
  </ul>
</nav>
<nav class="navbar navbar-bottom">
  <ul class="nav">
    <li class="nav-item">
      
      
      <a class="nav-item-link" target="_blank" href="/zreader/atom.xml" title="RSS Feed">
        <i class="ri-rss-line"></i>
      </a>
      
    </li>
  </ul>
</nav>
<div class="search-form-wrap">
  <div class="local-search local-search-plugin">
  <input type="search" id="local-search-input" class="local-search-input" placeholder="Search...">
  <div id="local-search-result" class="local-search-result"></div>
</div>
</div>
      </aside>
      <div id="mask"></div>

<!-- #reward -->
<div id="reward">
  <span class="close"><i class="ri-close-line"></i></span>
  <p class="reward-p"><i class="ri-cup-line"></i>赐予我力量吧</p>
  <div class="reward-box">
    
    <div class="reward-item">
      <img class="reward-img" src="/zreader/images/zhifubao.jpg">
      <span class="reward-type">支付宝</span>
    </div>
    
    
    <div class="reward-item">
      <img class="reward-img" src="/zreader/images/weixin.jpg">
      <span class="reward-type">微信</span>
    </div>
    
  </div>
</div>
      
<script src="/zreader/js/jquery-2.0.3.min.js"></script>


<script src="/zreader/js/jquery.justifiedGallery.min.js"></script>


<script src="/zreader/js/lazyload.min.js"></script>


<script src="/zreader/js/busuanzi-2.3.pure.min.js"></script>




  
<script src="/zreader/js/tocbot.min.js"></script>

  <script>
    // Tocbot_v4.7.0  http://tscanlin.github.io/tocbot/
    tocbot.init({
      tocSelector: '.tocbot',
      contentSelector: '.article-entry',
      headingSelector: 'h1, h2, h3, h4, h5, h6',
      hasInnerContainers: true,
      scrollSmooth: true,
      positionFixedSelector: '.tocbot',
      positionFixedClass: 'is-position-fixed',
      fixedSidebarOffset: 'auto',
    });
  </script>


<script>
  var ayerConfig = {
    mathjax: false
  }
</script>


<script src="/zreader/js/ayer.js"></script>


<script src="https://cdn.jsdelivr.net/npm/jquery-modal@0.9.2/jquery.modal.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/jquery-modal@0.9.2/jquery.modal.min.css">



<script type="text/javascript" src="https://js.users.51.la/20544303.js"></script>
  
  
  </div>
</body>

</html>